#include "loginwidget.h"
#include <QApplication>
#include "mainwidget.h"

#include "udp.h"
#include "tcpclient.h"
#include "tcpserver.h"
#include "serialport.h"

#include "bridge.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    loginWidget loginwidget;
    loginwidget.show();
    QObject::connect(&loginwidget, &loginWidget::loginSuccess, [&](){
        loginwidget.hide();
        mainWidget* mainwidget = new mainWidget;
        mainwidget->show();
    });

    return a.exec();
}
